#include "sk_storage/sk_storage.hpp"

#include <iostream>
#include <string>
#include <memory>

int main(int argc, char **argv) {
  std::shared_ptr<sk_storage::Sk> sk_ptr = std::make_shared<sk_storage::Sk>();
  sk_ptr->Init("logfile.sk");
  std::cout << "init" << std::endl;
  for (int i = 0; i < 100000; i ++) {
    auto status = sk_ptr->Set("voo_" + std::to_string(i), std::to_string(i));
    std::cout << "STATUS: " << status << std::endl;
  }
  std::string result;
  sk_ptr->Get("voo_3", result);
  std::cout << "GET voo_3: " << result << std::endl; 
  return 0;
}